﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>文章列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="~/Content/layui/css/layui.css" rel="stylesheet" />
    <link href="~/Content/css/public.css" rel="stylesheet" />
</head>
<body class="childrenBody">
    <form class="layui-form">
        <blockquote class="layui-elem-quote quoteBox">
            <form class="layui-form">
                <div class="layui-inline">
                    <a class="layui-btn layui-btn-normal addNews_btn">添加文章</a>
                </div>
                <div class="layui-inline">
                    <a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn">批量删除</a>
                </div>
            </form>
        </blockquote>
        <table id="newsList" lay-filter="newsList"></table>
        <!--审核状态-->
        <script type="text/html" id="newsStatus">
            {{#  if(d.newsStatus == "1"){ }}
            <span class="layui-red">等待审核</span>
            {{#  } else if(d.newsStatus == "0"){ }}
            <span class="layui-blue">已存草稿</span>
            {{#  } else { }}
            审核通过
            {{#  }}}
        </script>
        <!--操作-->
        <script type="text/html" id="newsListBar">
            <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-xs" lay-event="review">审核</a>
            <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
            <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="look">评论</a>
        </script>
    </form>
    <script src="~/Content/layui/layui.js"></script>
    <script src="~/Content/js/admin/newsList.js"></script>
</body>
</html>